//
//  JFCommon.swift
//  BaoKanIOS
//
//  Created by jianfeng on 16/1/1.
//  Copyright © 2016年 六阿哥. All rights reserved.
//

import UIKit

/**
 是否是夜间模式
 
 - returns: true 是夜间模式
 */
func isNight() -> Bool {
    return NSUserDefaults.standardUserDefaults().boolForKey(NIGHT_KEY)
}

//let BaseUrl = "http://192.168.3.153:8080/hzp/service/"//内网
let BaseUrl = "http://service.meiyinkeqiu.com/service/"//外网
let BaseUrl1 = "http://service.meiyinkeqiu.com/"//外网
//let BaseUrl1 = "http://192.168.3.153:8080/hzp/"//内网

//接口中的    ip:8080/hzp 换成service.meiyinkeqiu.com
/// 保存夜间模式的状态的key
let NIGHT_KEY = "night"

/// appStore中的应用id
let APPLE_ID = "1115587250"

/// 导航栏背景颜色 - （红色）
//let NAVIGATIONBAR_RED_COLOR = UIColor(red:0.831,  green:0.239,  blue:0.243, alpha:1)

let NAVIGATIONBAR_RED_COLOR = UIColor(red:194 / 255.0,  green:15 / 255.0,  blue:43 / 255.0, alpha:1)

/// 导航栏背景颜色 - (白色)
let NAVIGATIONBAR_WHITE_COLOR = UIColor.colorWithRGB(244, g: 244, b: 244)

/// 控制器背景颜色
let BACKGROUND_COLOR = UIColor(red:0.933,  green:0.933,  blue:0.933, alpha:1)

/// 全局边距
let MARGIN: CGFloat = 12

/// 全局圆角
let CORNER_RADIUS: CGFloat = 5

/// 屏幕宽度
let SCREEN_WIDTH = UIScreen.mainScreen().bounds.width

/// 屏幕高度
let SCREEN_HEIGHT = UIScreen.mainScreen().bounds.height

/// 屏幕bounds
let SCREEN_BOUNDS = UIScreen.mainScreen().bounds

/// 全局遮罩透明度
let GLOBAL_SHADOW_ALPHA: CGFloat = 0.6

//友盟推送
let k_UMENG_KEY = "57b8016a67e58ea981003f3e"
let k_UMENG_AppMasterSecret = "ntkyztbligra7crpeu1lj3boh91aad3x"
//分享
let k_MOB_KEY = "16fb63163cd28"
let k_MOB_AppMasterSecret = "d03e9143fe2bb7df8d01a28c5e6f34cb"
//腾讯
let k_TENCEN_APPID = "1105581089"
let k_TENCENT_AppMasterSecret = "1n2Uie1oIVWIMGTn"
//新浪
let k_SING_KEY = "4116308407"
let k_SING_KEY_AppMasterSecret = "fc66e5a37d91e1c2e924d055448ada8f"
//091671F7
//微信
let k_weixin_APPID = "wx08754f9d2598618c"
let k_weixin_KEY_AppMasterSecret = "23fc8f8d9299822692eb2825222a422e"

//APPID
let k_APPID = "1153448731"

//taobao
let k_taobao_APPKEY = "23433941"
let k_taobao_AppMasterSecret = "14d713f0302b5dab66c5277d042d971f"

/// 检查是否登录的key 用户保存登录状态到偏好设置
let IS_LOGIN = "isLogin"
//微博
let kRedirectURI = "http://www.sina.com"

/// 保存正文字体大小的key
let CONTENT_FONT_SIZE = "contentFontSize"
//选中按钮时的颜色
let SELECTED_COLOR = UIColor(red: 227/255, green: 197/255, blue: 193/255, alpha: 1.0)
//按钮的边线颜色
let BODER_COLOR = UIColor.lightGrayColor()

let ApplicationDelegate = (UIApplication.sharedApplication().delegate as! AppDelegate)
//热门和时间排序
let hotBtnClicked_noti = "hotBtnClicked_noti"
let timeBtnClicked_noti = "timeBtnClicked_noti"
//用户头像点击
let userHeadClicked_noti = "userHeadClicked_noti"
//分享
let userShare_noti = "userShare_noti"
//赞
let userZan_noti = "userZan_noti"
//回复
let userReply_noti = "userReply_noti"
//地址
let address_key = "address_key"
//邮政编码
let postCode_key = "postCode_key"
//姓名
let name_key = "name_key"
//联系电话
let tel_key = "tel_key"
//业内转让——物品
let transGoods_noti = "transGoods_noti"
//业内转让——店铺
let transShop_noti = "transShop_noti"
//微博登录
let sinaLogin_noti = "sinaLogin_noti"
//webViewHeight
let webViewHeight_noti = "webViewHeight_noti"
//用户头像
let userHeadIMG_key = "userHeadIMG_key"